package servicempl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import dao.LoginMapper;
import pojo.User;
import service.Userservice;

@Service
public class Userservicempl implements Userservice {
	@Resource
	private LoginMapper loginmapper;
	public void setLogindao(LoginMapper loginmapper) {
		this.loginmapper = loginmapper;
	}


	@Override
	public User Login(String name,String pwd) {
		return loginmapper.login(name,pwd);
	}

	@Override
	public void zc(String name, String pwd) {
		loginmapper.zc(name, pwd);
	}


	@Override
	public User findname(String name) {
		return loginmapper.findname(name);
	}


}
